package com.desay.pangoo.itmt.repository;

import cn.hutool.core.date.DateTime;
import com.desay.pangoo.itmt.entity.ContributionCalEntity;
import com.desay.pangoo.itmt.entity.MemberContributionEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author uids1175
 */
@Repository
public interface ContributionCalRepository extends JpaSpecificationExecutor<ContributionCalEntity>,
        PagingAndSortingRepository<ContributionCalEntity, Long> {

    ContributionCalEntity findByReviewId(Long reviewId);

    List<ContributionCalEntity> findAllByCalDateBetween(DateTime beginDate, DateTime endDate);
}
